package com.fangxing.apps.example.jpa;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by fangxing on 17-6-20.
 */
@Service
public class UserJPAService {
    @Autowired
    private UserJPARepository userJPARepository;
    public User get(String name){
        return (User)userJPARepository.findByName("fangxing");
    }
}
